package cn.tedu.hospitalqd.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class DrugUpdateDTO {
    @ApiModelProperty(value = "数据ID", required = true)
    @NotNull(message = "必须提交的ID")
    private Long id;

    @ApiModelProperty(value = "药品ID",required = true)
    @NotNull(message = "必须提交的药品ID")
    private String ypId;

    @ApiModelProperty(value = "药品名称", required = true)
    @NotNull(message = "必须提交药品名称")
    private String ypName;

    @ApiModelProperty(value = "药品价格", required = true)
    @NotNull(message = "必须提交药品价格")
    private Double ypPrice;

    @ApiModelProperty(value = "药品数量", required = true)
    @NotNull(message = "必须提交药品数量")
    private Integer ypQuantity;

    @ApiModelProperty(value = "药品生产日期", required = true)
    @NotNull(message = "必须提交药品生产日期")
    private String ypStorage;

    @ApiModelProperty(value = "药品生产日期", required = true)
    @NotNull(message = "必须提交药品生产日期")
    private String ypDate;

    @ApiModelProperty(value = "药品有效期", required = true)
    @NotNull(message = "必须提交药品有效期")
    private String ypPeriod;

    @ApiModelProperty(value = "药品库存量", required = true)
    @NotNull(message = "必须提交药品库存量")
    private Integer ypStock;
}
